package com.geely.design.principle.openclose;

public class Test {
    public static void main(String[] args) {
        ICourse javaCourse = new JavaDiscountCourse(96,"Java从零到企业级电商管理",348d);
        System.out.println("课程ID:"+javaCourse.getId()+"课程名称:"+javaCourse.getName()+"课程价格:"+javaCourse.getPrice()+"元");
    }
}
